import request from '@/utils/request'

// 查询服务宿主类型列表
export function listServiceMasterType(query) {
  return request({
    url: '/cmdb/serviceMasterType/list',
    method: 'get',
    params: query
  })
}

// 查询服务宿主类型详细
export function getServiceMasterType(id) {
  return request({
    url: '/cmdb/serviceMasterType/' + id,
    method: 'get'
  })
}

// 新增服务宿主类型
export function addServiceMasterType(data) {
  return request({
    url: '/cmdb/serviceMasterType',
    method: 'post',
    data: data
  })
}

// 修改服务宿主类型
export function updateServiceMasterType(data) {
  return request({
    url: '/cmdb/serviceMasterType',
    method: 'put',
    data: data
  })
}

// 删除服务宿主类型
export function delServiceMasterType(id) {
  return request({
    url: '/cmdb/serviceMasterType/' + id,
    method: 'delete'
  })
}
